.class Lcom/waiqin365/lightapp/chexiao/fs;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/chexiao/fs;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 4

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fs;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->b(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Ljava/util/ArrayList;

    move-result-object v0

    if-eqz v0, :cond_0

    add-int/lit8 v0, p3, -0x1

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/fs;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->b(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-ge v0, v1, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fs;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->b(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Ljava/util/ArrayList;

    move-result-object v0

    add-int/lit8 v1, p3, -0x1

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/bd;

    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/chexiao/fs;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->c(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Landroid/content/Context;

    move-result-object v2

    const-class v3, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesProcessSelectActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "customerInfo"

    iget-object v3, v0, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v2, "visitId"

    iget-object v3, v0, Lcom/waiqin365/lightapp/visit/b/bd;->a:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "visitStatus"

    iget-object v3, v0, Lcom/waiqin365/lightapp/visit/b/bd;->m:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "isFinished"

    iget-object v3, v0, Lcom/waiqin365/lightapp/visit/b/bd;->Q:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "visitor"

    iget-object v3, v0, Lcom/waiqin365/lightapp/visit/b/bd;->g:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "from"

    const-string/jumbo v3, "visitRecordDetail"

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "visitType"

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/b/bd;->n:Ljava/lang/String;

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fs;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    const/16 v2, 0x66

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->startActivityForResult(Landroid/content/Intent;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fs;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->overridePendingTransition(II)V

    :cond_0
    return-void
.end method
